import request from '../utils/request'
// 搜索关键词联想功能
export const suggestListAPI = ({ query }) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q: query
    }
  })
}

//
/**
 *    q: 搜索关键词    page: 页数
 * @returns 搜索结果
 */
export const searchResultAPI = ({ q, page = 1 }) => {
  return request({
    url: '/v1_0/search',
    params: {
      q,
      page
    }
  })
}
